<template>
	<view class="advisorylist">
		<view class="advisorylist-ul" v-for="(item,index) in modules" @click="advisorylist(item)">
			<view class="advisorylist-li">
				<view class="advisorylist-li-img">
					<image :src=" '/static/image/' + item.icon + '.png' " mode=""></image>
				</view>
				<view class="advisorylist-li-text">
					<text>{{item.name}}</text>
				</view>
			</view>
			<view class="advisorylist-lo">
				<image src="../../static/image/index-pass.png" mode=""></image>
			</view>
		</view>
		<view class="advisorylist-bottom" @click="advisory"> 
			<text>退出登录</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				modules: [{
						id: 1,
						icon: "index-password",
						name: "修改密码",
					},
					{
						id: 2,
						icon: "index-xiaofei",
						name: "消费记录",
					},
					{
						id: 3,
						icon: "icon-zixun",
						name: "我的咨询",
					},
					{
						id: 4,
						icon: "icon-shezhi",
						name: "系统设置",
					},
					{
						id: 5,
						icon: "icon-jianyi",
						name: "意见反馈",
					},
				],
			}
		},
		methods: {
			advisorylist(val) {
				let url;
				switch (val.id) {
					case 1:
						url = '/pages/advisory/password';
						break;
					case 2:
						url = '/pages/advisory/expenseCalendar';
						break;
					case 3:
						url = '/pages/advisory/consult';
						break;
					case 4:
						url = '/pages/advisory/system';
						break;
					case 5:
						url = '/pages/advisory/coupleback';
						break;
				}
				uni.navigateTo({
					url: url,
				});
			},
			advisory(){
				let quit = {
					
				}
				
				uni.navigateTo({
					url:'/pages/bootpage/login'
				})
			},
			
		},
	}
</script>

<style lang="less" scoped>
	.advisorylist {
		padding-top: 80rpx;
		.advisorylist-ul {
			border-bottom: .5rpx solid #DCDCDC;
			width: 686rpx;
			height: 100rpx;
			margin: 0 auto;
			position: relative;
			display: flex;
			justify-content: center;
			flex-direction: column;
			&:nth-child(1) {
				border-top: .5rpx solid #DCDCDC;
			}
			.advisorylist-li {
				display: flex;
				.advisorylist-li-img {
					display: flex;
					justify-content: center;
					flex-direction: column;
					image {
						width: 25rpx;
						height: 24rpx;
					}
				}

				.advisorylist-li-text {
					margin-left: 15rpx;
					text {
						font-size: 33rpx;
						font-family: Source Han Sans CN;
						font-weight: 500;
						color: #333333;
						letter-spacing: 3rpx;
					}
				}
			}

			.advisorylist-lo {
				position: absolute;
				right: 0;
				image {
					width: 13rpx;
					height: 24rpx;
				}
			}
		}

		.advisorylist-bottom {
			width: 686rpx;
			height: 80rpx;
			background: #0099FF;
			border-radius: 13rpx;
			margin: 0 auto;
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;
			margin-top: 80rpx;
			text {
				font-size: 33rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: #FFFFFF;
				letter-spacing: 5rpx;
			}
		}
	}
</style>
